package cn.itcast.com.exception;

import jdk.nashorn.internal.codegen.CompilerConstants;

public class demo04 implements Cloneable{
    public static void main(String[] args) {
        CallClass callClass = new CallClass();
//        callClass.runtime();
        callClass.checkable();
    }
}

class CallClass{

    public void runtime(){
            int i = 1;
            int j = i / 0;
    }

    public void checkable(){
        CallClass callClass = new CallClass();

        try{
            callClass.clone();
        }catch (Exception e){
            System.out.println( e.getMessage());
        }
    }
}

